<!--
 * @Description: 
 * @version: 
 * @Author: liurui
 * @Date: 2024-02-04 15:38:25
 * @LastEditors: 
 * @LastEditTime: 2024-02-04 15:42:48
-->
<template>
    <div>

    </div>
</template>

<script setup lang="ts">
// 实现 Capitalize<T> 它将字符串的第一个字母转换为大写，其余字母保持原样

type Capitalize<T extends string> = T extends `${infer F}${infer R}` ? `${Uppercase<F>}${R}` : '';


type capitalized = Capitalize<'hello world'>; // expected to be 'Hello world'
</script>

<style scoped>

</style>